FIELD = '房地产开发'
with open('A股公司详细情况.txt', encoding='utf-8') as f:
    for line in f:
        if line.__contains__(FIELD):
            print(line)